let appglobal = require("../../appglobal.js");
module.exports = {
    initview: () => {
        return {
            "applicationInfo": {
                "appId": `${appglobal.appId}`,
                "controlVersion": "0.0.0",
                "serverURL": `${appglobal.serverIp}:${appglobal.serverPort}`
            },
            "userInfo": {
                "userId": `${appglobal.userId}`,
                "userName": `${appglobal.userName}`,
                "loginToken": "1",
                "roleId": "1",
                "bizStep": "1",
                "deptId": "",
                "orgName": "1"
            },
            "inputInfoList": [
                {
                    "uuId": `${appglobal.uuId}`,
                    "versionNo": "1.0.1",
                    "bizGuId": `${appglobal.bizGuId}`,
                    "tag": `${appglobal.tag}`,
                    "opType": "attachOrginal",
                    "shareType": "0",
                    "isShowDeleted": "true",
                    "isShowUseless": "true",
                    "filter": "include",
                    "isShowClassify": "false"
                }
            ]
        }
    },
    createImageDocument: () => {
        return {
            "application": {
                "appId": `${appglobal.appId}`,
                "controlVersion": "0.0.0",
                "serverURL": `${appglobal.serverIp}:${appglobal.serverPort}`
            },
            "user": {
                "userId": `${appglobal.userId}`,
                "userName": `${appglobal.userName}`,
                "loginToken": "1",
                "roleId": "1",
                "bizStep": "1",
                "deptId": "",
                "orgName": "1"
            },
            "inparameterList": [
                {
                    "serverId": `${appglobal.serverIp}`,
                    "isUploading": "true",
                    "bizGuid": `${appglobal.bizGuId}`,
                    "opType": "attachOrginal",
                    "treeId": `${appglobal.uuId}`,
                    "versionNo": "1.0.1",
                    "tag": `${appglobal.tag}`,
                    "docparameterList": [
                    ],
                    "fileparameterList": [
                    ]
                }
            ]
        }
    },
    getdocparameter: (parm) => {
        return {
            docId: parm.docId,
            docName: parm.docName,
            parentDirid: parm.parentDirid,
            docType: parm.docType,
            docTypeName: parm.docTypeName,
            pageCount: parm.pageCount,
            fileSource: "0",
            bizStep: "0",
            docColor: "",
            isArchived: "false",
            isConfirmed: "false",
            isDeleted: "false",
            isQuestion: "false",
            isUseless: "false",
            taskId: "",
            isCustomerDoc: "true",
            hasExtProp: "false",
            isRef: "false",
            refDocId: "0"
        }
    },
    getfileparameterList: (parm) => {
        return {
            fileIndex: "1",
            docId: parm.docId,
            docType: parm.docType,
            docTypeName: parm.docTypeName,
            fileName: parm.fileName,
            filePath: parm.filePath,
            imageDpi: "300",
            imageAngle: "0",
            isRead: "false",
            isCustomerFile: "true",
            isFront: "true",
            extFileMsg1: "",
            externalInfo: ""
        }
    }
}
